<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>thread_pool::basic_executor_type::require</title>
    <link rel="stylesheet" href="../../../boostbook.css" type="text/css">
    <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
    <link rel="home" href="../../../index.html" title="Asio">
    <link rel="up" href="../thread_pool__basic_executor_type.html" title="thread_pool::basic_executor_type">
    <link rel="prev" href="query__static/overload3.html"
          title="thread_pool::basic_executor_type::query (3 of 3 overloads)">
    <link rel="next" href="require/overload1.html" title="thread_pool::basic_executor_type::require (1 of 9 overloads)">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%">
    <tr>
        <td valign="top"><img alt="asio C++ library" width="250" height="60" src="../../../asio.png"></td>
    </tr>
</table>
<hr>
<div class="spirit-nav">
    <a accesskey="p" href="query__static/overload3.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u"
                                                                                                        href="../thread_pool__basic_executor_type.html"><img
        src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png"
                                                                                            alt="Home"></a><a
        accesskey="n" href="require/overload1.html"><img src="../../../next.png" alt="Next"></a>
</div>
<div class="section">
    <div class="titlepage">
        <div>
            <div><h4 class="title">
                <a name="asio.reference.thread_pool__basic_executor_type.require"></a><a class="link"
                                                                                         href="require.html"
                                                                                         title="thread_pool::basic_executor_type::require">thread_pool::basic_executor_type::require</a>
            </h4></div>
        </div>
    </div>
    <p>
        <a class="indexterm" name="asio.indexterm.thread_pool__basic_executor_type.require"></a>
        Obtain
        an executor with the <code class="computeroutput"><span class="identifier">blocking</span><span class="special">.</span><span
            class="identifier">possibly</span></code>
        property.
    </p>
    <pre class="programlisting"><span class="keyword">constexpr</span> <span
            class="identifier">basic_executor_type</span><span class="special">&lt;</span> <span class="identifier">Allocator</span><span
            class="special">,</span> <span class="identifier">unspecified</span> <span class="special">&gt;</span> <a
            class="link" href="require/overload1.html"
            title="thread_pool::basic_executor_type::require (1 of 9 overloads)">require</a><span
            class="special">(</span>
    <span class="identifier">execution</span><span class="special">::</span><span
                class="identifier">blocking_t</span><span class="special">::</span><span
                class="identifier">possibly_t</span> <span class="special">)</span> <span
                class="keyword">const</span><span class="special">;</span>
  <span class="emphasis"><em>» <a class="link" href="require/overload1.html"
                                  title="thread_pool::basic_executor_type::require (1 of 9 overloads)">more...</a></em></span>
</pre>
    <p>
        Obtain an executor with the <code class="computeroutput"><span class="identifier">blocking</span><span
            class="special">.</span><span class="identifier">always</span></code>
        property.
    </p>
    <pre class="programlisting"><span class="keyword">constexpr</span> <span
            class="identifier">basic_executor_type</span><span class="special">&lt;</span> <span class="identifier">Allocator</span><span
            class="special">,</span> <span class="identifier">unspecified</span> <span class="special">&gt;</span> <a
            class="link" href="require/overload2.html"
            title="thread_pool::basic_executor_type::require (2 of 9 overloads)">require</a><span
            class="special">(</span>
    <span class="identifier">execution</span><span class="special">::</span><span
                class="identifier">blocking_t</span><span class="special">::</span><span
                class="identifier">always_t</span> <span class="special">)</span> <span
                class="keyword">const</span><span class="special">;</span>
  <span class="emphasis"><em>» <a class="link" href="require/overload2.html"
                                  title="thread_pool::basic_executor_type::require (2 of 9 overloads)">more...</a></em></span>
</pre>
    <p>
        Obtain an executor with the <code class="computeroutput"><span class="identifier">blocking</span><span
            class="special">.</span><span class="identifier">never</span></code>
        property.
    </p>
    <pre class="programlisting"><span class="keyword">constexpr</span> <span
            class="identifier">basic_executor_type</span><span class="special">&lt;</span> <span class="identifier">Allocator</span><span
            class="special">,</span> <span class="identifier">unspecified</span> <span class="special">&gt;</span> <a
            class="link" href="require/overload3.html"
            title="thread_pool::basic_executor_type::require (3 of 9 overloads)">require</a><span
            class="special">(</span>
    <span class="identifier">execution</span><span class="special">::</span><span
                class="identifier">blocking_t</span><span class="special">::</span><span
                class="identifier">never_t</span> <span class="special">)</span> <span class="keyword">const</span><span
                class="special">;</span>
  <span class="emphasis"><em>» <a class="link" href="require/overload3.html"
                                  title="thread_pool::basic_executor_type::require (3 of 9 overloads)">more...</a></em></span>
</pre>
    <p>
        Obtain an executor with the <code class="computeroutput"><span class="identifier">relationship</span><span
            class="special">.</span><span class="identifier">fork</span></code>
        property.
    </p>
    <pre class="programlisting"><span class="keyword">constexpr</span> <span
            class="identifier">basic_executor_type</span> <a class="link" href="require/overload4.html"
                                                             title="thread_pool::basic_executor_type::require (4 of 9 overloads)">require</a><span
            class="special">(</span>
    <span class="identifier">execution</span><span class="special">::</span><span
                class="identifier">relationship_t</span><span class="special">::</span><span
                class="identifier">fork_t</span> <span class="special">)</span> <span class="keyword">const</span><span
                class="special">;</span>
  <span class="emphasis"><em>» <a class="link" href="require/overload4.html"
                                  title="thread_pool::basic_executor_type::require (4 of 9 overloads)">more...</a></em></span>
</pre>
    <p>
        Obtain an executor with the <code class="computeroutput"><span class="identifier">relationship</span><span
            class="special">.</span><span class="identifier">continuation</span></code>
        property.
    </p>
    <pre class="programlisting"><span class="keyword">constexpr</span> <span
            class="identifier">basic_executor_type</span> <a class="link" href="require/overload5.html"
                                                             title="thread_pool::basic_executor_type::require (5 of 9 overloads)">require</a><span
            class="special">(</span>
    <span class="identifier">execution</span><span class="special">::</span><span
                class="identifier">relationship_t</span><span class="special">::</span><span class="identifier">continuation_t</span> <span
                class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="emphasis"><em>» <a class="link" href="require/overload5.html"
                                  title="thread_pool::basic_executor_type::require (5 of 9 overloads)">more...</a></em></span>
</pre>
    <p>
        Obtain an executor with the <code class="computeroutput"><span class="identifier">outstanding_work</span><span
            class="special">.</span><span class="identifier">tracked</span></code>
        property.
    </p>
    <pre class="programlisting"><span class="keyword">constexpr</span> <span
            class="identifier">basic_executor_type</span><span class="special">&lt;</span> <span class="identifier">Allocator</span><span
            class="special">,</span> <span class="identifier">unspecified</span> <span class="special">&gt;</span> <a
            class="link" href="require/overload6.html"
            title="thread_pool::basic_executor_type::require (6 of 9 overloads)">require</a><span
            class="special">(</span>
    <span class="identifier">execution</span><span class="special">::</span><span
                class="identifier">outstanding_work_t</span><span class="special">::</span><span class="identifier">tracked_t</span> <span
                class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="emphasis"><em>» <a class="link" href="require/overload6.html"
                                  title="thread_pool::basic_executor_type::require (6 of 9 overloads)">more...</a></em></span>
</pre>
    <p>
        Obtain an executor with the <code class="computeroutput"><span class="identifier">outstanding_work</span><span
            class="special">.</span><span class="identifier">untracked</span></code>
        property.
    </p>
    <pre class="programlisting"><span class="keyword">constexpr</span> <span
            class="identifier">basic_executor_type</span><span class="special">&lt;</span> <span class="identifier">Allocator</span><span
            class="special">,</span> <span class="identifier">unspecified</span> <span class="special">&gt;</span> <a
            class="link" href="require/overload7.html"
            title="thread_pool::basic_executor_type::require (7 of 9 overloads)">require</a><span
            class="special">(</span>
    <span class="identifier">execution</span><span class="special">::</span><span
                class="identifier">outstanding_work_t</span><span class="special">::</span><span class="identifier">untracked_t</span> <span
                class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="emphasis"><em>» <a class="link" href="require/overload7.html"
                                  title="thread_pool::basic_executor_type::require (7 of 9 overloads)">more...</a></em></span>
</pre>
    <p>
        Obtain an executor with the specified <code class="computeroutput"><span
            class="identifier">allocator</span></code>
        property.
    </p>
    <pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span>
    <span class="keyword">typename</span> <span class="identifier">OtherAllocator</span><span
                class="special">&gt;</span>
<span class="keyword">constexpr</span> <span class="identifier">basic_executor_type</span><span
                class="special">&lt;</span> <span class="identifier">OtherAllocator</span><span class="special">,</span> <span
                class="identifier">Bits</span> <span class="special">&gt;</span> <a class="link"
                                                                                    href="require/overload8.html"
                                                                                    title="thread_pool::basic_executor_type::require (8 of 9 overloads)">require</a><span
                class="special">(</span>
    <span class="identifier">execution</span><span class="special">::</span><span
                class="identifier">allocator_t</span><span class="special">&lt;</span> <span class="identifier">OtherAllocator</span> <span
                class="special">&gt;</span> <span class="identifier">a</span><span class="special">)</span> <span
                class="keyword">const</span><span class="special">;</span>
  <span class="emphasis"><em>» <a class="link" href="require/overload8.html"
                                  title="thread_pool::basic_executor_type::require (8 of 9 overloads)">more...</a></em></span>
</pre>
    <p>
        Obtain an executor with the default <code class="computeroutput"><span
            class="identifier">allocator</span></code>
        property.
    </p>
    <pre class="programlisting"><span class="keyword">constexpr</span> <span
            class="identifier">basic_executor_type</span><span class="special">&lt;</span> <span
            class="identifier">std</span><span class="special">::</span><span class="identifier">allocator</span><span
            class="special">&lt;</span> <span class="keyword">void</span> <span class="special">&gt;,</span> <span
            class="identifier">Bits</span> <span class="special">&gt;</span> <a class="link"
                                                                                href="require/overload9.html"
                                                                                title="thread_pool::basic_executor_type::require (9 of 9 overloads)">require</a><span
            class="special">(</span>
    <span class="identifier">execution</span><span class="special">::</span><span
                class="identifier">allocator_t</span><span class="special">&lt;</span> <span class="keyword">void</span> <span
                class="special">&gt;</span> <span class="special">)</span> <span class="keyword">const</span><span
                class="special">;</span>
  <span class="emphasis"><em>» <a class="link" href="require/overload9.html"
                                  title="thread_pool::basic_executor_type::require (9 of 9 overloads)">more...</a></em></span>
</pre>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%">
    <tr>
        <td align="left"></td>
        <td align="right">
            <div class="copyright-footer">Copyright © 2003-2022 Christopher M. Kohlhoff<p>
                Distributed under the Boost Software License, Version 1.0. (See accompanying
                file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
            </p>
            </div>
        </td>
    </tr>
</table>
<hr>
<div class="spirit-nav">
    <a accesskey="p" href="query__static/overload3.html"><img src="../../../prev.png" alt="Prev"></a><a accesskey="u"
                                                                                                        href="../thread_pool__basic_executor_type.html"><img
        src="../../../up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../home.png"
                                                                                            alt="Home"></a><a
        accesskey="n" href="require/overload1.html"><img src="../../../next.png" alt="Next"></a>
</div>
</body>
</html>
